<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div id="entry">
    <table>
        <tr>
            <td>入住编码</td>
            <td>待缴纳费用</td>
        </tr>
        <tr>
            <td th:text="${checkInId}"></td>
            <td th:text="${Total}"></td>
        </tr>
<!--        <tr th:object="consumAccount">-->
<!--           <td th:text="${consumAccount.checkInId}"></td>-->
<!--           <td th:text="${consumAccount.total}"></td>-->
<!--        </tr>-->
    </table>
</div>
<div>
    <table>
        <tr>
            <td>清单编码</td>
            <td>消费物品名称</td>
            <td>物品数量</td>
            <td>物品单价</td>
            <td>共计</td>
            <td>消费时间</td>
            <td>入住编码</td>
            <td>删除</td>
            <td>入账</td>
        </tr>
        <tr th:each="consumption:${consumptionList}">
            <td><a th:href="'/consumption/updateConsumptionForm?listId='+${consumption.listId}" th:text="${consumption.listId}"></a></td>
            <td th:text="${consumption.goodsName}"></td>
            <td th:text="${consumption.goodsNum}"></td>
            <td th:text="${consumption.goodsPrice}"></td>
            <td th:text="${consumption.total}" th:name="total"></td>
            <td th:text="${consumption.useTime}"></td>
            <td th:text="${consumption.checkInId}" th:name="checkInId"></td>
            <td><a th:href="'/consumption/deleteConsumption?listId='+${consumption.listId}" th:text="删除"></a></td>
            <td><a th:href="'/consumption/entry?listId='+${consumption.listId}" th:text="入账"></a></td>
        </tr>
    </table>
</div>
</body>
</html>